<%@ page contentType="text/html; charset=euc-kr"%>
<jsp:useBean class="com.swsp.msg.InternalMessage" id="RESULT" scope="request"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
	String b_list = RESULT.getString("b_list");
	Dataset list = null;
	if(b_list.equals("Y")) {
		list = (Dataset) RESULT.get("list");
	}
	String board_id = RESULT.getString("board_id");
%>
<%@page import="com.swsp.sql.Dataset"%><html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="../css/notice.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function goRead(board_id , idx) {
		var frm = document.frmRead;
		frm.target="_top";
		frm.action="/board.do?action=getRead";
		frm.board_id.value = board_id;
		frm.idx.value = idx;
		frm.submit();
	}
</script>
</head>
<form method="post" name="frmRead" >
<input type="hidden" name="board_id" />
<input type="hidden" name="idx" />
</form>
<body bgcolor="B6B2A5" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="257" height="103" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td><img src="../img/trance_2.jpg" width="27" height="29"></td>
    <td><%if(board_id.equals("notice")){ %><img src="../img/notice_o.jpg" width="71" height="29"><%} else{ %><a href="/board.do?action=getSmallBoardInfo&board_id=notice"><img src="../img/notice.jpg" width="72" height="29" border="0"></a><%} %></td>
    <td><%if(board_id.equals("hospitalInfo")){ %><img src="../img/news_o.jpg" width="71" height="29"><%} else{ %><a href="/board.do?action=getSmallBoardInfo&board_id=hospitalInfo"><img src="../img/news.jpg" width="72" height="29" border="0"></a><%} %></td>
    <td><%if(board_id.equals("medicalInfo")){ %><img src="../img/info_o.jpg" width="86" height="29"><%} else{ %><a href="/board.do?action=getSmallBoardInfo&board_id=medicalInfo"><img src="../img/info.jpg" width="87" height="29" border="0"></a><%} %></td>
  </tr>
  <tr align="right"> 
    <td height="74" colspan="4" background="../img/notice_bg.jpg"><table width="213" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
<%
	if(list != null) {
		while( list.next() ) {		
%>
          <a href="javascript:goRead('<%=board_id %>','<%=list.getString("idx") %>')"><%=list.getString("subject") %></a><br>
<%
		}
	}
%>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
